﻿package net.wangit.view.unit.sum;

import net.wangit.framework.exception.NestableRuntimeException;

public class SumConfigurationException extends NestableRuntimeException {

	private static final long serialVersionUID = 1L;

	public SumConfigurationException(String s) {
		super(s);
	}

	public SumConfigurationException(String s, Throwable cause) {
		super(s, cause);
	}

	public SumConfigurationException(String s, String domain, String unitId) {
		super((new StringBuilder(String.valueOf(s))).append(
				"\nsum configuration error: please check ").append(domain)
				.append("/").append(unitId).toString());
	}

	public SumConfigurationException(String domain, String unitId) {
		super((new StringBuilder("\nsum configuration error: please check "))
				.append(domain).append("/").append(unitId).toString());
	}

	public SumConfigurationException(String domain, String unitId,
			Throwable cause) {
		super((new StringBuilder("\nsum configuration error: please check "))
				.append(domain).append("/").append(unitId).toString(), cause);
	}
}
